home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Over 1,000 Windows 95 Programs
/
Over 1000 Windows 95 Programs (Microforum) (Disc 1).iso
/
0446
/
clisrc.zip
/
WINDLG.H
< prev
next >
Wrap
C/C++ Source or Header
|
1992-03-27
|
930b
|
43 lines
// windlg.h RHS 1/15/92
#if !defined(WINDLG_H)
#define WINDLG_H
#include"winapp.h"
long far pascal WinDlgWndProc(HWND hWnd, WORD msg, WORD wParam, LONG lParam);
class WinDlg : public Window
{
public:
WinDlg(char *name) : Window(name)
{
SetClassWinProc(WinDlgWndProc);
AddClassWinXbytes(DLGWINDOWEXTRA);
}
BOOL Create(void)
{
Register();
SetWinInstance(GetInstance());
SetWinClassName(GetClassName());
SetWinParams((LPSTR)this);
extern Window *winDlg;
winDlg = this;
if(hWnd = CreateDialog(GetInstance(), GetClassName(), 0, NULL))
return TRUE;
return FALSE;
}
virtual BOOL UserMessageProcessing(MSG *msg)
{
if(!hWnd || !IsDialogMessage(hWnd,msg))
return FALSE;
return TRUE;
}
};
#endif